package com.lagou.service.impl;

import com.lagou.service.Method;

import java.util.Random;


public class MethodServiceImpl implements Method {


    @Override
    public String methodA(String A) {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "方法A"+A;
    }

    @Override
    public String methodB(String B)  {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "方法B"+B;
    }

    @Override
    public String methodC(String C)  {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "方法C"+C;
    }
}
